package com.jason.controller;

import com.jason.entities.JsonData;
import com.jason.service.PaymentFeignService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class OrderFeignController {
    @Resource
    private PaymentFeignService paymentFeignService;
    @GetMapping("consumer/get/{id}")
    public JsonData getPaymentById(@PathVariable("id") Long id){
        return paymentFeignService.Select(id);
    }

}
